import request from '@/utils/request'

// 查询列表
export function datacolList(query) {
  return request({
    url: '/mes/datacol/info/list',
    method: 'get',
    params: query
  })
}
// 查询行列表
export function analysisList(query) {
  return request({
    url: '/mes/datacol/analysis/list',
    method: 'get',
    params: query
  })
}
// 新增
export function addDatacol(data) {
  return request({
    url: '/mes/datacol/info',
    method: 'post',
    data: data
  })
}

// 修改
export function updateDatacol(data) {
  return request({
    url: '/mes/datacol/info',
    method: 'put',
    data: data
  })
}

// 删除
export function delDatacol(id) {
  return request({
    url: '/mes/datacol/info/' + id,
    method: 'delete'
  })
}


// 新增
export function addAnalysis(data) {
  return request({
    url: '/mes/datacol/analysis',
    method: 'post',
    data: data
  })
}

// 修改
export function updateAnalysis(data) {
  return request({
    url: '/mes/datacol/analysis',
    method: 'put',
    data: data
  })
}

// 删除
export function delAnalysis(id) {
  return request({
    url: '/mes/datacol/analysis/' + id,
    method: 'delete'
  })
}